$(document).ready(function(){

$('.reg-form').submit(function(){
    var fName = $('#fName').notEmpty({errorClass: ".f-name-error"});
    var lName = $('#lName').notEmpty({errorClass: ".l-name-error"});
    var username = $('#username').notEmpty({errorClass: ".username-error"});
    var email = $('#email').notEmpty({errorClass: ".reg-email-error"});
    var company = $('#company').notEmpty({errorClass: ".reg-company-error"});
    var country = $('#country').notEmpty({errorClass: ".country-error"});
    var jobTitle = $('#jobTitle').notEmpty({errorClass: ".job-title-error"});
    var emailFormat =  $('#email').emailFormat({errorClass: ".reg-email-error"});
	var terms =$.fn.checkterms();
	
	if( !fName || !lName || !email || !username || !company || !country || !jobTitle || !emailFormat || !terms)
        {return false;}
    else
        {return true;}
	
 });
});